package interfas;

import model.EntityClassDAO;
import model.SurveyDAO;

import org.mybeans.dao.DAOException;

import databeans.Question;

public interface QuestionInterface {

	public abstract void create(Question question, SurveyDAO surveyDAO, EntityClassDAO ecDAO) throws DAOException;
	public abstract Question lookup(int qid) throws DAOException;
	public abstract Question[] getQuestionBySid(int sid) throws DAOException;
	public abstract Question[] getQuestionBySidDynetmlType(int sid, int dynetmlType) throws DAOException;
	public abstract void updateEntityToFrom(Question question, EntityClassDAO ecDAO) throws DAOException;
	public abstract void updateQuestion(Question question) throws DAOException;
	public abstract int size() throws DAOException;
	
}
